package com.aiprompt.demos.service.impl;

import com.aiprompt.demos.manager.BigModelManager;
import com.aiprompt.demos.model.dto.prompt.PromptGenerateRequest;
import com.aiprompt.demos.service.GenerateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class GenerateServiceImpl implements GenerateService {
    @Resource
    private BigModelManager bigModelManager;

    @Override
    public String GenerateOutputText(PromptGenerateRequest promptGenerateRequest) {
        String inputText = promptGenerateRequest.getInputText();

       return bigModelManager.generateResponse("你现在是一个提示词生成助手，请你根据用户发送的内容来生成一个有效高质量的提示词帮助用户解决问题", inputText);
    }
}
